import { drawPie, drawHistogram, drawLine, drawArea, drawPyramid } from './draw';

export function drawLChart(type: string, dom: string, data: any[], options: ChartOptions = {}) {
    switch (type) {
        case 'pie':
            drawPie(dom, data, options);
            break;
        case 'histogram':
            drawHistogram(dom, data, options);
            break;
        case 'line':
            drawLine(dom, data, options);
            break;
        case 'area':
            drawArea(dom, data, options);
            break;
        case 'pyramid':
            drawPyramid(dom, data, options);
            break;
        default:
            break;
    }
}
